import request from '@/utils/request'

export function getStudentList(data) {
  return request({
    url: '/student/find-all-student',
    method: 'post',
    data
  })
}
export function deleteStudent(sid) {
  return request({
    url: '/student/delete-student',
    method: 'post',
    params: { sid }
  })
}

export function addStudent(data) {
  return request({
    url: '/student/add-student',
    method: 'post',
    data
  })
}

export function updateStudent(data) {
  return request({
    url: '/student/update-student',
    method: 'post',
    data
  })
}

export function setStudentPermission(data) {
  return request({
    url: '/student/set-student-permission',
    method: 'post',
    data
  })
}
